﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace GrouponDesktop.PedirDevolucion
{
    public partial class DevMotivo : Form
    {

        private string cod;
        private string idcxu;
        private int cantComp;

        public DevMotivo( string codC, string idc, int cant)
        {
            this.cantComp = cant;
            this.idcxu = idc;
            this.cod = codC;
            InitializeComponent();
        }

        private void b_ped_Click(object sender, EventArgs e)
        {
            BDConnection.execute("EXEC CodingSpree.insertDevo '" + this.tb_motiv.Text + "' ,'" + variablesGlobales.Configuracion.fechaHoy + "' , " + this.cantComp + ", " + this.idcxu);
            MessageBox.Show("Pedido Efectuado");
            Close();
        }
    }
}
